#!/bin/sh

mkdir -p build
cd build
cmake -DCMAKE_BUILD_TYPE=Debug ..

# -j to enable parallel compiling
coreCount=`grep "physical id" /proc/cpuinfo | wc -l`
make -j $coreCount $@


